#coding:utf-8
cars = ['bmw', 'audi', 'toyota', 'subaru']

#sort() 这个是按照A-z自动分类,自己给参数设置属性
cars.sort()
print(cars)

#sort分类，打开reverse的属性是True 并且打印
cars.sort(reverse=True)
print(cars)


print("Here is the original list: ")
print(cars)

print("\nHere is the original list: ")
#直接输出并且自动排列
print(sorted(cars))

print("\nHere is the original list: ")
print(cars)

#3.3.3
cars1 = ['bmw', 'audi', 'toyota', 'subaru']
print(cars1)

#倒着打印列表
cars1.reverse()
print(cars1)

